/*
This source file is subject to the GPLv3 license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://www.gnu.org/licenses/gpl.txt
*/

#include "MsgCommDialog.h"
#include "ui_MsgCommDialog.h"

MsgCommDialog::MsgCommDialog(QWidget *parent)
    : QDialog(parent), ui(new Ui::MsgCommDialog)
{
    ui->setupUi(this);
    ResetDisplay();
}

MsgCommDialog::~MsgCommDialog()
{
    delete ui;
}

void MsgCommDialog::ResetDisplay()
{
    this->setWindowTitle(tr("Message Communication"));

    ui->txtlineMsgCommNumber->setText(tr("1"));
    ui->txtlineTestCase->setText(tr("New Test Case"));
    ui->txtlineTestPlan->setText(tr("New Test Plan"));
    ui->txtplainMsgIn->setPlainText(tr(""));
    ui->txtplainMsgOut->setPlainText(tr(""));
    ui->cmbboxConditionProceed->setCurrentIndex(0);
}

// Slots
void MsgCommDialog::on_btnCancel_clicked()
{
    close();
}

void MsgCommDialog::on_btnOK_clicked()
{
    close();
}
